<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
	  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:tal="http://purl.org/petal/1.0/" xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
  <head>
    <title>Wildlife Database</title>
    <link rel="stylesheet" type="text/css" href="css/input.css" />
    <script src="js/sighting.js" type="text/javascript"></script>
    <script type="text/javascript">
    </script>
  </head>
  <body onload="parent.clear_click_markers();set_update_markers()" >
    <div id='close'><a href="javascript:parent.closeFrame()">X</a></div>
    <div id="notification" tal:content="notification"></div>
    <div id="form">
      <h1 tal:condition="false:edit">Add new Landmark</h1>
      <h1 tal:condition="true:edit">Edit Landmark</h1>
      <form id="inputform" name="inputform" action="landmark.pl" method="post">
	<input tal:condition="false:edit" type="hidden" name="action" value="new" />
	<input tal:condition="true:edit" type="hidden" name="action" value="update" />
	<input type="hidden" name="id" tal:attributes="value elandmark/id" />
	<span class="required">Landmark Name</span>: <input type="text" size="50" name="name" tal:attributes="value elandmark/name" /><br />
	<span class="required">Location</span>: <input type="text" name="latitude" size="11" tal:attributes="value elandmark/latitude" />,
	<input type="text" name="longitude" size="11" tal:attributes="value elandmark/longitude" /><br />
	Notes:<input type="text" name="notes" size="100" tal:attributes="value elandmark/notes" /><br />
	<input tal:condition="false:edit" type="submit" value="Add Landmark" />
	<input tal:condition="true:edit" type="submit" value="Update Landmark" />
	<span class="required">Required Field</span>
      </form>
    </div>
    <table>
      <thead>
	<tr>
	  <td></td>
	  <td></td>
	  <td>Name</td>
	  <td>Latitude</td>
	  <td>Longitude</td>
	  <td>Notes</td>
	</tr>
      </thead>
	<tr tal:repeat="landmark landmarks">
	  <td>
	    <form action="landmark.pl">
	      <input type="hidden" name="id" tal:attributes="value landmark/id" />
	      <input type="hidden" name="action" value="edit" />
	      <input type="submit" value="Edit" />
	    </form>
	  </td>
	  <td>
	    <form action="landmark.pl">
	      <input type="hidden" name="id" tal:attributes="value landmark/id" />
	      <input type="hidden" name="action" value="delete" />
	      <input type="submit" value="Delete" />
	    </form>
	  </td>
	  <td tal:content="landmark/name"></td>
	  <td tal:content="landmark/latitude"></td>
	  <td tal:content="landmark/longitude"></td>
	  <td tal:content="landmark/notes"></td>

	</tr>
    </table>
  </body>
</html>
